        <script src="assets/js/image-ready.js"></script>
        <script type="text/javascript">
        $(function(){
            $('div.main_top_picture img').each(function(){
                var $this=$(this);
                imgReady($this.attr('src'),function(){
                    if((this.width*3) > (this.height*4)){
                        $this.css("height","101px");
                        $this.css("width","auto");
                        $this.css("max-width","none");
                    }
                });
            });
        });
        </script>
        
        <div class="row">
            <div class="span9">
                <div class="border-wrap">
                    <div class="border-inner">
                         <div id="top_ten_title" class="row">
                             <div class="span9 postfix_span9">
                                <h4 class="sidebar_title"><span>十大热门神帖</span></h4>
                             </div>
                         </div>
                             <?php
                                if (isset($topten)) {
                                    foreach ($topten as $id => $row) :?>
                                <div id="post_<?php echo $row['post_id']?>" class="row">
                                    <div class="span9 singlepost background_<?php echo $id+1?> postfix_span9">
                                        <div class="row">
                                            <div class="span2 data_area">
                                                <div class="main_top_picture">
                                                    <a href="post/show/<?php echo $row['post_id']?>"><img src="<?php echo base_url().$row['photo_location_cache']?>" /></a>
                                                </div>
                                            </div>
                                            <div class="span7 postfix_span7">
                                                <div class="row">
                                                    <div class="span6 postfix_span6">
                                                        <div class="icon-post-<?php echo $row['post_topic']?>"></div>
                                                        <!--20汉字或34字符-->
                                                        <div class="title">
                                                            <a href="post/show/<?php echo $row['post_id']?>" rel="trunc-34" data-content="<?php echo $row['post_title']; ?>"><?php echo $row['post_title']?></a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="span7 postfix_span7 info">
<!--                                                        <div class="post_topic"><a class="post_tag_<?php echo $row['post_topic']?>" href="javascript:void(0);"><?php echo $row['post_topic_value'];?></a></div>                                                -->
                                                        <ul class="tag_list">
                                                            <li class="tag" title="性别"><?php echo $row['post_gender']?></li>
                                                            <li class="tag" title="星座"><?php echo $row['post_constel']?></li>
                                                            <li class="tag" title="出生年份"><?php echo $row['post_birth'];?></li>
                                                            <li class="tag" title="现居地"><?php echo $row['post_residence']?></li>
                                                        </ul>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="span7 postfix_span7">
                                                        <div class="like font_gray">
                                                            <i class="icon-comment" title="回复"></i>
                                                            <?php echo $row['repost_num']?>
                                                        </div>
                                                        <div class="like font_gray">
                                                            <i class="icon-eye-open" title="点击"></i>
                                                            <?php echo $row['click_num']?>
                                                        </div>
                                                        <div class="like font_gray"><?php echo value_to_timestamp($row['post_time']); ?>　<a href="home/<?php echo $row['user_id']?>"><?php echo $row['nickname']?></a></div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                             <?php endforeach;
                                }
                             ?>
                    </div>
                </div>
            </div>
        </div>